3.321 \(\int \frac {1}{a x+b x} \, dx\)

Optimal. Leaf size=8 \[ \frac {\log (x)}{a+b} \]

[Out]

ln(x)/(a+b)

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6, 12, 29} \[ \frac {\log (x)}{a+b} \]

Antiderivative was successfully verified.

[In]

Int[(a*x + b*x)^(-1),x]

[Out]

Log[x]/(a + b)

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, x]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rubi steps

\begin {align*} \int \frac {1}{a x+b x} \, dx &=\int \frac {1}{(a+b) x} \, dx\\ &=\frac {\int \frac {1}{x} \, dx}{a+b}\\ &=\frac {\log (x)}{a+b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 14, normalized size = 1.75 \[ \frac {\log (a x+b x)}{a+b} \]

Antiderivative was successfully verified.

[In]

Integrate[(a*x + b*x)^(-1),x]

[Out]

Log[a*x + b*x]/(a + b)

________________________________________________________________________________________

fricas [A]  time = 0.38, size = 8, normalized size = 1.00 \[ \frac {\log \relax (x)}{a + b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x+b*x),x, algorithm="fricas")

[Out]

log(x)/(a + b)

________________________________________________________________________________________

giac [A]  time = 0.15, size = 15, normalized size = 1.88 \[ \frac {\log \left ({\left | a x + b x \right |}\right )}{a + b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x+b*x),x, algorithm="giac")

[Out]

log(abs(a*x + b*x))/(a + b)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 9, normalized size = 1.12 \[ \frac {\ln \relax (x )}{a +b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a*x+b*x),x)

[Out]

ln(x)/(a+b)

________________________________________________________________________________________

maxima [A]  time = 1.33, size = 14, normalized size = 1.75 \[ \frac {\log \left (a x + b x\right )}{a + b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x+b*x),x, algorithm="maxima")

[Out]

log(a*x + b*x)/(a + b)

________________________________________________________________________________________

mupad [B]  time = 5.27, size = 8, normalized size = 1.00 \[ \frac {\ln \relax (x)}{a+b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a*x + b*x),x)

[Out]

log(x)/(a + b)

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 5, normalized size = 0.62 \[ \frac {\log {\relax (x )}}{a + b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x+b*x),x)

[Out]

log(x)/(a + b)

________________________________________________________________________________________